.PHONY:all
all:httpserver test_alive test_close test_error test_performance test_http_s

httpserver:main.cpp
	g++ -g $^ -o $@ -std=c++11 -lpthread
test_alive:test_alive.cpp
	g++ -g $^ -o $@ -std=c++11 -lpthread
test_close:test_close.cpp
	g++ -g $^ -o $@ -std=c++11 -lpthread
test_error:test_error.cpp
	g++ -g $^ -o $@ -std=c++11 -lpthread
test_performance:test_performance.cpp
	g++ -g $^ -o $@ -std=c++11 -lpthread
test_http_s:test_http_s.cpp
	g++ -g $^ -o $@ -std=c++11 -lpthread

.PHONY:clean
clean:
	rm -f httpserver test_alive test_close test_error test_performance test_http_s